package com.atguigu.spring.aop.annotation;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author wk
 * @create 2021-06-02 21:18
 */
public class AopAspectTest {
    @Test
    public void test(){
        ApplicationContext ac=new ClassPathXmlApplicationContext("spring-annotation-aop.xml");
        Caculator caculator = ac.getBean(Caculator.class);
        System.out.println(caculator.div(1, 3));
    }
}
